package com.example.hotelsystem.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class CreateOrderVO {
    Long roomId;

    Long userId;

    @JsonFormat(pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    Date checkinTime;

    @JsonFormat(pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    Date checkoutTime;
}
